package cn.ljw.dto;

import cn.ljw.entity.Article;
import lombok.Data;

import java.util.Date;

/**
 * @author 一朝风月
 * @date 2024/3/27 12:05
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */
@Data
public class ArticleInfoDto {

    public ArticleInfoDto() {
    }

    public ArticleInfoDto(Article article) {
        super();
        this.id = article.getId();
        this.title = article.getTitle();
        this.publishTime = article.getPublishTime();
    }


    /**
     * id
     */
    private Integer id;

    /**
     * 内容标题
     */
    private String title;

    /**
     * 发布时间
     */
    private Date publishTime;
}
